gadgetsetvalue()

Description:

Set the value of a gadget.

Syntax:

Required syntax:

 

gadgetsetvalue( gadgethandle , value/value#/value$ )

 

Parameters:

Required parameters

Description

gadgethandle A handle to the gadget you wish to alter the value in
value/value#/value$ The actual value, see table below:

Following table shows, what you can alter in the different types of gadgets:

Gadget type What you alter Variable type
gadgettext() The text of the gadget String ($)
gadgetbutton() The displayed text in the button String ($)
gadgettextbox() The text, the gadget contains String ($)
gadgetfloat() The decimal number, the gadget contains Real (#)
gadgetinteger() The number, the gadget contains Integer
gadgethscroller() The horizontal position of scroller´s slider, in the range: min_value#....max_value# inclusive Real (#)
gadgetvscroller() The vertical position of scroller´s slider, in the range: min_value#....max_value# inclusive Real (#)
gadgetcycle() The gadget´s selected option. Integer
gadgetimage() The frame in the gadget´s image Integer
gadgettexteditor() The whole text message including the character: "|" , for a new line. String ($)
gadgettextselection() The gadget´s selected option Integer
gadgetcheckbox() State of checkbox, off = 0 , on = 1 Integer

Returns:

None

 

Example: